Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Populate DataHash key size in SslConnectionInfo#4169

Merged
stephentoub merged 2 commits into
dotnet:masterfrom
shrutigarg:ssl_new1
Oct 29, 2015
Merged

Populate DataHash key size in SslConnectionInfo#4169
stephentoub merged 2 commits into
dotnet:masterfrom
shrutigarg:ssl_new1

Conversation

@shrutigarg
Copy link
Copy Markdown
Contributor

this is an update on PR #3916 on top of Eric's shimming changes.
It includes one extra bug fix of updating signature change of QueryContextConnectionInfo.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we're no longer returning an int, any reason not to change the out parameter to be the return value?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a PAL function, so the signature needs to match Windows. (Windows currently has a void return). If we did this we would need to update the Windows PAL function and the call site. (Not saying that we can't do that though...)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's why I like PAL interfaces vs PAL static implicit call conventions, personally.

@stephentoub
Copy link
Copy Markdown
Member

cc: @bartonjs, @eerhardt

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add a null check for this new parameter before dereferencing it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this check in the latest code. All that is needed is to change line 459 from

if (!ssl || !dataCipherAlg || !keyExchangeAlg || !dataHashAlg || !dataKeySize)

to

if (!ssl || !dataCipherAlg || !keyExchangeAlg || !dataHashAlg || !dataKeySize || !hashKeySize)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@stephentoub
Copy link
Copy Markdown
Member

LGTM

@shrutigarg shrutigarg force-pushed the ssl_new1 branch 4 times, most recently from 8c10ea0 to 12e22c7 Compare October 28, 2015 17:43
@shrutigarg
Copy link
Copy Markdown
Contributor Author

@dotnet-bot test this please

@shrutigarg shrutigarg force-pushed the ssl_new1 branch 5 times, most recently from 474ec26 to 92ec4d8 Compare October 29, 2015 09:25
stephentoub added a commit that referenced this pull request Oct 29, 2015
Populate DataHash key size in SslConnectionInfo
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants